namespace Admin2025.Domain.Events;

// 用户删除事件
public class UserDeletedEvent : IDomainEvent
{
    public Guid EventId { get; }
    public Guid UserId { get; }
    public string Username { get; } = null!;
    public DateTime OccurredOn { get; }
    public Guid DeletedBy{ get; }
    public UserDeletedEvent(Guid userId, string username, Guid deletedBy)
    {
        EventId = Guid.NewGuid();
        UserId = userId;
        Username = username;
        DeletedBy = deletedBy;
        OccurredOn = DateTime.UtcNow;
    }
}